package com.likersai.opon.pojo.entity;

import com.likersai.opon.pojo.bo.EntityBO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
/**
 *菜单表
 *
 * @author sun.ye
 * @since 2024-03-21 15:23:50
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "menu")
public class Menu extends EntityBO {

    /**
     * 菜单名称
     */
    @Column(name = "menu_name")
    private String menuName;

    /**
     * 菜单编码
     */
    @Column(name = "menu_code")
    private String menuCode;

    /**
     * 菜单标题
     */
    @Column(name = "menu_title")
    private String menuTitle;

    /**
     * 父菜单ID
     */
    @Column(name = "parent_id")
    private Long parentId;

    /**
     * 路由位置
     */
    @Column(name = "router")
    private String router;

    /**
     * 文件位置
     */
    @Column(name = "file_path")
    private String filePath;

    /**
     * 图标
     */
    @Column(name = "icon")
    private String icon;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    /**
     * 展示类型
     */
    @Column(name = "type")
    private String type;
}
